package cc.greencat.gcmall.member.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cc.greencat.gcmall.common.utils.PageUtils;
import cc.greencat.gcmall.common.utils.Query;

import cc.greencat.gcmall.member.dao.MemberInfoDao;
import cc.greencat.gcmall.member.entity.MemberInfoEntity;
import cc.greencat.gcmall.member.service.MemberInfoService;


@Service("memberInfoService")
public class MemberInfoServiceImpl extends ServiceImpl<MemberInfoDao, MemberInfoEntity> implements MemberInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MemberInfoEntity> page = this.page(
                new Query<MemberInfoEntity>().getPage(params),
                new QueryWrapper<MemberInfoEntity>()
        );

        return new PageUtils(page);
    }

}